package net.expectx.gw.util;


import com.alibaba.fastjson.JSON;
import net.expectx.common.base.BaseResult;
import net.expectx.common.base.BaseResultConstants;

public class AdminResult extends BaseResult {

    public AdminResult(int code, String message, Object data) {

        super(code, message, data);

    }

    public AdminResult(BaseResultConstants apiResultConstants, Object data) {
        super(apiResultConstants.getCode(), apiResultConstants.getMessage(), data);
    }
    public AdminResult(Boolean success, BaseResultConstants apiResultConstants, Object data) {
        super(success,apiResultConstants.getCode(), apiResultConstants.getMessage(), data);
    }
    public static void main(String [] args){
        System.out.println(JSON.toJSONString(new  AdminResult(true,BaseResultConstants.SUCCESS, null)));
    }

}
